
<div class="container">  
    <table class="table table-striped">
    <?php if (count($contas) > 0) { ?>
         <?php foreach ($contas as $conta) { ?>
        <tr>
            <td>
              <div class="media">
                 <a class="pull-left" href="#">
                    <img class="media-object" src="<?php echo base_url('UploadImg/Perfil/'.$conta->Foto.'.jpg') ?>" height="50" alt="...">
                 </a>
                  <div class="media-body">
                    <?php if(!$conta->Seguindo) {?>
                        <form class="navbar-form" role="search" method="POST" 
                          action="<?php { echo base_url('./index.php/contaseguindo/criar'); } ?>"> 
                    <?php }?>
                       
                    <?php echo form_hidden('contaID', $conta->ContaID); ?>
                    
                    <h4 class="media-heading"><?php echo $conta->Nome; ?></h4>
                    
                    <?php if(!$conta->Seguindo) {?>                    
                       <button type="submit" class="btn btn-success btn-xs">
                            <span class="glyphicon glyphicon-tag"></span> Seguir
                       </button>
                    <?php }?>
                    
                     <?php if(!$conta->Seguindo) {?>
                        </form> 
                     <?php }?>
                      
                  </div>
              </div>
            </td>
        </tr>
         <?php }?>        
     <?php } else {?> 
        <h4>Nenhum resultado encontrado!</h4>
     <?php } ?>
   </table>
</div>